import { WindowName } from "@/mdesign-lib/mdesign-main.js";
import { IpcWindow } from "@/mdesign-lib/mdesign-app.umd.js";

export interface ValidateGroupParams {
  projectId: string;
  isEdit: boolean;
}

export type CloseData = {
  windowName: WindowName;
  success: boolean;
};

export const validateGroupWindow = new IpcWindow<
  // 参数
  ValidateGroupParams,
  // 返回值
  CloseData
>(WindowName.ValidateGroupWindow);
